package com.siyuan.sns.user.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.siyuan.sns.user.dao.UserDao;
import com.siyuan.sns.user.domain.entity.User;
import com.siyuan.sns.user.service.UserService;

@Transactional
@Service("userService")
public class UserServiceImpl implements UserService {
	private UserDao userDao;

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public User findByUsername(String username) {
		return this.userDao.findByUsername(username);
	}
}
